﻿<UserControl x:Class="ibba.src.norisk.Controls.ControlRelPGR3"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:slc="clr-namespace:ibba.src.slcomponentes;assembly=ibba.src.slcomponentes"    
    xmlns:slr="clr-namespace:ibba.src.sl.recursos;assembly=ibba.src.sl.recursos"
    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  
    mc:Ignorable="d">

    <toolkit:BusyIndicator x:Name="activity">
        <Grid x:Name="LayoutRoot" Background="White">
            <slc:CustomContentPanel Header="Filtros" BorderBrush="#FFF29C47" AllowDrop="True">
                <Grid Margin="7,0,7,7" ShowGridLines="False">
                    <Grid.ColumnDefinitions >
                        <ColumnDefinition Width="82"/>
                        <ColumnDefinition Width="962"/>
                    </Grid.ColumnDefinitions>

                    <TextBlock x:Name="lblData" Height="17" Margin="12,25,32,0" VerticalAlignment="Top" Text="Data" TextWrapping="Wrap" Foreground="#FF5A7194" RenderTransformOrigin="1.542,0.412"/>
                    <TextBlock x:Name="lblInstrumento" Height="17" HorizontalAlignment="Right" Margin="0,25,744,0" VerticalAlignment="Top" Width="77" Text="Instrumento" TextWrapping="Wrap" Foreground="#FF5A7194" RenderTransformOrigin="1.542,0.412" Grid.Column="1"/>
                    <TextBlock x:Name="lblBem" Height="17" HorizontalAlignment="Left" Margin="417,25,0,0" VerticalAlignment="Top" Width="32" Text="Bem" TextWrapping="Wrap" Foreground="#FF5A7194" RenderTransformOrigin="1.542,0.412" Grid.Column="1" d:LayoutOverrides="HorizontalAlignment"/>
                    <TextBlock x:Name="lblNatureza" Height="17" HorizontalAlignment="Left" Margin="679,25,0,0" VerticalAlignment="Top" Width="77" Text="Natureza" TextWrapping="Wrap" Foreground="#FF5A7194" RenderTransformOrigin="1.542,0.412" Grid.Column="1"/>
                    <TextBlock x:Name="lblGarantidor" Height="17" HorizontalAlignment="Left" Margin="142,65,0,0" VerticalAlignment="Top" Width="77" Text="Garantidor" TextWrapping="Wrap" Foreground="#FF5A7194" RenderTransformOrigin="1.542,0.412" Grid.Column="1"/>
                    <TextBlock x:Name="lblGpOperacao" Height="44" HorizontalAlignment="Left" Margin="417,58,0,0" VerticalAlignment="Top" Width="62" Text="Grupo de Operação" TextWrapping="Wrap" Foreground="#FF5A7194" RenderTransformOrigin="1.542,0.412" Grid.Column="1" d:LayoutOverrides="HorizontalAlignment"/>
                    <TextBlock x:Name="lblGpGarantidor" Height="47" HorizontalAlignment="Left" Margin="680,58,0,0" VerticalAlignment="Top" Width="60" Text="Grupo Garantidor" TextWrapping="Wrap" Foreground="#FF5A7194" RenderTransformOrigin="1.542,0.412" Grid.Column="1"/>
                    <TextBlock x:Name="lblFormalizada" Height="17" Margin="12,65,955,0" VerticalAlignment="Top" Text="Formalizada?" TextWrapping="Wrap" Foreground="#FF5A7194" RenderTransformOrigin="1.542,0.412" Grid.ColumnSpan="2" />

                    <controls:DatePicker x:Name="dtpData" HorizontalAlignment="Left" Margin="12,21,0,0" VerticalAlignment="Top" Grid.Column="1"/>
                    <ComboBox x:Name="cboInstrumento" ItemsSource="{Binding}" DataContext="IdInstrumento" DisplayMemberPath="Descricao" HorizontalAlignment="Left" Margin="221,23,0,0" Width="180" VerticalAlignment="Top" SelectionChanged="cboInstrumento_SelectionChanged" Grid.Column="1"/>
                    <ComboBox x:Name="cboBem" ItemsSource="{Binding}" DataContext="IdBem" DisplayMemberPath="Descricao" HorizontalAlignment="Left" Margin="486,25,0,0" Width="180" VerticalAlignment="Top" SelectionChanged="cboBem_SelectionChanged" Grid.Column="1"/>
                    <ComboBox x:Name="cboNatureza" ItemsSource="{Binding}" DataContext="IdNatureza" DisplayMemberPath="Descricao" HorizontalAlignment="Left" Margin="754,23,0,0" Width="180" VerticalAlignment="Top" Grid.Column="1"/>
                    <ComboBox x:Name="cboFormalizada" ItemsSource="{Binding}" HorizontalAlignment="Left" Margin="12,63,0,0" Width="119" VerticalAlignment="Top" Grid.Column="1"/>
                    <!--<ComboBoxItem Content="Todos" IsSelected="True"/>-->

                    <Button x:Name="btnPesquisar" Margin="795,96,0,0" 
					Width="140" 
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top" Height="28" Grid.Column="1" Click="btnPesquisar_Click" >

                        <StackPanel Orientation="Vertical" Margin="-55,-3,-52,0" Width="140" Height="26">
                            <Image Source="../image/search.png" Width="20" 
							HorizontalAlignment="Left"
							Margin="7,4,0,7" />
                            <TextBlock Text="Gerar Relatório" Margin="35,-25,8,0" FontSize="12"/>
                        </StackPanel>

                    </Button>

                    <slr:AutoCompleteBoxFix Grid.Column="1" Height="22" HorizontalAlignment="Left" Margin="221,61,0,0" Name="autoCompGarantidor" VerticalAlignment="Top" Width="183" MinimumPrefixLength="3" ValueMemberBinding="{Binding Path=DscGarantidor}">
                        <slr:AutoCompleteBoxFix.ItemTemplate>
                            <DataTemplate>
                                <Grid Width="196">
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Path=DscGarantidor}" Margin="0,0,5,0" />
                                    </StackPanel>
                                </Grid>
                            </DataTemplate>
                        </slr:AutoCompleteBoxFix.ItemTemplate>
                    </slr:AutoCompleteBoxFix>

                    <slr:AutoCompleteBoxFix Grid.Column="1" Height="22" HorizontalAlignment="Left" Margin="486,60,0,0" Name="autoCompGpGarantidor" VerticalAlignment="Top" Width="183" MinimumPrefixLength="3" ValueMemberBinding="{Binding Path=DscGrupoCliente}">
                        <slr:AutoCompleteBoxFix.ItemTemplate>
                            <DataTemplate>
                                <Grid Width="196">
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Path=DscGrupoCliente}" Margin="0,0,5,0" />
                                    </StackPanel>
                                </Grid>
                            </DataTemplate>
                        </slr:AutoCompleteBoxFix.ItemTemplate>
                    </slr:AutoCompleteBoxFix>

                    <slr:AutoCompleteBoxFix Grid.Column="1" Height="22" HorizontalAlignment="Right" Margin="0,60,28,0" Name="autoCompGpOperacao" VerticalAlignment="Top" Width="180" MinimumPrefixLength="3" ValueMemberBinding="{Binding Path=DscGrupoCliente}">
                        <slr:AutoCompleteBoxFix.ItemTemplate>
                            <DataTemplate>
                                <Grid Width="196">
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding Path=DscGrupoCliente}" Margin="0,0,5,0" />
                                    </StackPanel>
                                </Grid>
                            </DataTemplate>
                        </slr:AutoCompleteBoxFix.ItemTemplate>
                    </slr:AutoCompleteBoxFix>
                </Grid>
            </slc:CustomContentPanel>
        </Grid>
    </toolkit:BusyIndicator>
</UserControl>
